{
  "properties" : { },
  "id" : "42e7e82b96d9473595ce39223cf38340",
  "script" : null,
  "groupId" : "fb7ea204a8434d1983e21a73c3ccfead",
  "name" : "img",
  "createTime" : null,
  "updateTime" : 1730863986916,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "管理员",
  "path" : "img",
  "method" : "GET",
  "parameters" : [ {
    "name" : "id",
    "value" : "10010",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 500,\n    \"msg\": \"系统内部出现错误\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import sun.misc.BASE64Decoder
import 'javax.imageio.ImageIO' as ImageIO;
import 'java.io.ByteArrayOutputStream' as ByteArrayOutputStream;
import response

String base64Img = db.table('mq_bk_msg').where().eq("type", "img").and().eq("msg_id", id+"_2").selectOne().msg;

return response.image(new BASE64Decoder().decodeBuffer(base64Img), 'image/png');